<%@page import="com.chauncy.DMS.bean.StuInfoBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	List<Map<String,Object>> sDormInfoListMap= (List)session.getAttribute("sDormInfoListMap");
	//System.out.println("aaa"+sDormInfoListMap.size() );
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
		<meta charset="UTF-8">
		<title>用户页面</title>
		<link rel="stylesheet" href="./layui/css/layui.css" />
		<link rel="stylesheet" href="./css/stu_fun_page.css" />
		<script type="text/javascript" src="./layui/layui.js" ></script>
	</head>
	<body>
		<div class="main-layout">
			<!--作者：1097172038@qq.com 时间：2018-09-17 描述：侧边栏-->
            <div class="main-layout-side">
            	<!--时间：2018-09-17 描述：logo-->
            	<div class="m-logo"></div>
            	<ul class="layui-nav layui-nav-tree" lay-filter="leftNav">
            	<!-- 	<li class="layui-nav-item"><a href="javascript:;" data-url="./html/select_dorm.jsp" data-id="1" data-text="宿舍选择">宿舍选择</a></li> -->
            		<li class="layui-nav-item"><a href="javascript:;" data-url="dormInfoServlet?dormitoryNumber=<%=sDormInfoListMap.get(0).get("Dormitory_number") %>&dormNumber=<%=sDormInfoListMap.get(0).get("Dorm_number") %>" data-id = "2" data-text = "宿舍信息">宿舍信息</a></li>
            		<!-- <li class="layui-nav-item"><a href="javascript:;" data-url="./html/update_dorm_info.jsp" data-id="3" data-text="离/换寝申请">离/换寝申请</a></li> -->
            	</ul>
            </div>
            <!--作者：1097172038@qq.com 时间：2018-09-17 描述：右侧内容 -->
            <div class="main-layui-container">
            	<!-- 作者：1097172038@qq.com 时间：2018-09-17 描述：头部-->
            	<div class="main-layout-header">
            		<div class="menu-btn" id="hidemenu">
            			<a href="javascript:;">
            				<i class="layui-icon layui-icon-shrink-right" style="font-size: 30px;"></i>
            			</a>
            		</div>
            		<ul class="layui-nav layui-layout-right" lay-filter="rightNav">
            		<% if(sDormInfoListMap.size() > 0){%>
            			<li class="layui-nav-item "><a href="javascript:;" data-url = "sssss.html">用户:<%=sDormInfoListMap.get(0).get("Stu_name") %></a></li>
            			<li class="layui-nav-item "><a href="userLoginServlet?logout=logout">退出登录</a></li>
            				<%}else{%>
            			<li class="layui-nav-item "><a href="javascript:;" data-url = "sssss.html">用户:XXX</a></li>
            			<li class="layui-nav-item "><a href="javascript:;">尚未登录</a></li>
            				<% }%>
            		</ul>
            	</div>
            	<!--  作者：1097172038@qq.com 时间：2018-09-17  描述：主体内容  -->
            	<div class="main-layout-body">
            		<!--tab 切换-->
            		<div class="layui-tab layui-tab-brief main-layout-tab" lay-filter="tabs" lay-allowClose="true">
            			<ul class="layui-tab-title">
            				<li class="layui-this ">后台主页</li>
            			</ul>
            			<div class="layui-tab-content" style="height: 100%;">
            				<div class="layui-tab-item layui-show" >
            					<iframe src="./html/welcome.jsp" width="100%" height="100%" name="iframe" scrolling="auto" class="iframe" framborder="0"></iframe>
            				</div>
            			</div>
            		</div>
            	</div>
            </div>
		</div>
	</body>
<script type="text/javascript" src="./js/stu_func_page.js" ></script>
</html>
